
class AlarmAreaItem {
    Object alarmImageId;
    Object alarmImageUrl;
    String alarmInfo;
    String alarmLocation;
    String alarmTime;
    int alarmType;
    String alarmTypeName;
    Object areaId;
    int bindType;
    Object code;
    Object currentAreaPersonnel;
    String departName;
    String detail;
    String floorNo;
    String handleInfo;
    String handleTime;
    int id;
    double lat;
    double lng;
    String openAreaId;
    int personId;
    String personNameOrAreaName;
    Object regionalStaff;
    String sn;
    Object socialCreditCode;
    String status;
    Object type;
    String typeName;
    Object videoId;
    Object x;
    Object y;

    AlarmAreaItem({this.alarmImageId, this.alarmImageUrl, this.alarmInfo, this.alarmLocation, this.alarmTime, this.alarmType, this.alarmTypeName, this.areaId, this.bindType, this.code, this.currentAreaPersonnel, this.departName, this.detail, this.floorNo, this.handleInfo, this.handleTime, this.id, this.lat, this.lng, this.openAreaId, this.personId, this.personNameOrAreaName, this.regionalStaff, this.sn, this.socialCreditCode, this.status, this.type, this.typeName, this.videoId, this.x, this.y});

    factory AlarmAreaItem.fromJson(Map<String, dynamic> json) {
        return AlarmAreaItem(
//            alarmImageId: json['alarmImageId'] != null ? Object.fromJson(json['alarmImageId']) : null,
//            alarmImageUrl: json['alarmImageUrl'] != null ? Object.fromJson(json['alarmImageUrl']) : null,
            alarmInfo: json['alarmInfo'], 
            alarmLocation: json['alarmLocation'], 
            alarmTime: json['alarmTime'], 
            alarmType: json['alarmType'], 
            alarmTypeName: json['alarmTypeName'], 
//            areaId: json['areaId'] != null ? Object.fromJson(json['areaId']) : null,
            bindType: json['bindType'], 
//            code: json['code'] != null ? Object.fromJson(json['code']) : null,
//            currentAreaPersonnel: json['currentAreaPersonnel'] != null ? Object.fromJson(json['currentAreaPersonnel']) : null,
            departName: json['departName'], 
//            detail: json['detail'] != null ? String?.fromJson(json['detail']) : null,
            floorNo: json['floorNo'], 
//            handleInfo: json['handleInfo'] != null ? String?.fromJson(json['handleInfo']) : null,
            handleTime: json['handleTime'], 
            id: json['id'], 
            lat: json['lat'], 
            lng: json['lng'], 
            openAreaId: json['openAreaId'], 
//            personId: json['personId'] != null ? int?.fromJson(json['personId']) : null,
            personNameOrAreaName: json['personNameOrAreaName'], 
//            regionalStaff: json['regionalStaff'] != null ? Object.fromJson(json['regionalStaff']) : null,
            sn: json['sn'], 
//            socialCreditCode: json['socialCreditCode'] != null ? Object.fromJson(json['socialCreditCode']) : null,
            status: json['status'], 
//            type: json['type'] != null ? Object.fromJson(json['type']) : null,
            typeName: json['typeName'], 
//            videoId: json['videoId'] != null ? Object.fromJson(json['videoId']) : null,
//            x: json['x'] != null ? Object.fromJson(json['x']) : null,
//            y: json['y'] != null ? Object.fromJson(json['y']) : null,
        );
    }

//    Map<String, dynamic> toJson() {
//        final Map<String, dynamic> data = new Map<String, dynamic>();
//        data['alarmInfo'] = this.alarmInfo;
//        data['alarmLocation'] = this.alarmLocation;
//        data['alarmTime'] = this.alarmTime;
//        data['alarmType'] = this.alarmType;
//        data['alarmTypeName'] = this.alarmTypeName;
//        data['bindType'] = this.bindType;
//        data['departName'] = this.departName;
//        data['floorNo'] = this.floorNo;
//        data['handleTime'] = this.handleTime;
//        data['id'] = this.id;
//        data['lat'] = this.lat;
//        data['lng'] = this.lng;
//        data['openAreaId'] = this.openAreaId;
//        data['personNameOrAreaName'] = this.personNameOrAreaName;
//        data['sn'] = this.sn;
//        data['status'] = this.status;
//        data['typeName'] = this.typeName;
//        if (this.alarmImageId != null) {
//            data['alarmImageId'] = this.alarmImageId.toJson();
//        }
//        if (this.alarmImageUrl != null) {
//            data['alarmImageUrl'] = this.alarmImageUrl.toJson();
//        }
//        if (this.areaId != null) {
//            data['areaId'] = this.areaId.toJson();
//        }
//        if (this.code != null) {
//            data['code'] = this.code.toJson();
//        }
//        if (this.currentAreaPersonnel != null) {
//            data['currentAreaPersonnel'] = this.currentAreaPersonnel.toJson();
//        }
//        if (this.detail != null) {
//            data['detail'] = this.detail.toJson();
//        }
//        if (this.handleInfo != null) {
//            data['handleInfo'] = this.handleInfo.toJson();
//        }
//        if (this.personId != null) {
//            data['personId'] = this.personId.toJson();
//        }
//        if (this.regionalStaff != null) {
//            data['regionalStaff'] = this.regionalStaff.toJson();
//        }
//        if (this.socialCreditCode != null) {
//            data['socialCreditCode'] = this.socialCreditCode.toJson();
//        }
//        if (this.type != null) {
//            data['type'] = this.type.toJson();
//        }
//        if (this.videoId != null) {
//            data['videoId'] = this.videoId.toJson();
//        }
//        if (this.x != null) {
//            data['x'] = this.x.toJson();
//        }
//        if (this.y != null) {
//            data['y'] = this.y.toJson();
//        }
//        return data;
//    }
}